'use strict';

const expressConfig = require('./config/env/express.json'),
  mongoose = require('./config/mongoose.js'),
  app = require('./config/express.js');


app.set('port', expressConfig.A_BACKEND.port);

var server = app.listen(app.get('port'), function () {
  console.log('Express server listening on port ' + server.address().port);
});

module.exports = app;

